//
//  OAViewController.m
//  OANetworkManager
//
//  Created by GuoRui on 02/01/2018.
//  Copyright (c) 2018 GuoRui. All rights reserved.
//

#import "OAViewController.h"
#import <SDWebImage/NSData+ImageContentType.h>
#import <MobileCoreServices/UTType.h>
@interface OAViewController ()

@end

@implementation OAViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    NSDictionary *dic = @{ @"person": @{ @"name": @"zy", @"age": @19 } };
    NSLog(@"%@", [dic valueForKeyPath:@"person.name"]);
    
    CFStringRef stringRef = [NSData sd_UTTypeFromSDImageFormat:SDImageFormatJPEG];
    CFStringRef MIMEType = UTTypeCopyPreferredTagWithClass (stringRef, kUTTagClassMIMEType);
    NSLog(@"%@", (__bridge NSString *)MIMEType);
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
